using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Localization;
using SinBiota.Model.Entities.CustomAttributes;

namespace SinBiota.Model.Entities
{
    [LocalizedName("Municipality", NameResourceType = typeof(Strings))]
    public class Municipality : BaseEntity
    {
        [LocalizedName("Name", NameResourceType = typeof(Strings))]
        [Required(ErrorMessageResourceType = typeof(Messages), ErrorMessageResourceName = "FieldCannotBeEmpty")]
        public virtual string Name { get; set; }

        [LocalizedName("State", NameResourceType = typeof(Strings))]
        [Required(ErrorMessageResourceType = typeof(Messages), ErrorMessageResourceName = "FieldCannotBeEmpty")]
        public virtual State State { get; set; }

        [LocalizedName("DrainageBasin", NameResourceType = typeof(Strings))]
        public virtual DrainageBasin DrainageBasin { get; set; }
        
    }

    public enum State
    {
    // ReSharper disable InconsistentNaming
        AC, AL, AP, AM, BA, CE, DF, ES, GO, MA, MT, MS, MG, PA, PB, PR, PE, PI, RR, RO, RJ, RN, RS, SC, SP, SE, TO
    // ReSharper restore InconsistentNaming
    }
 
 }
